package ua.dou.loader;

/**
 * Base loader response entity.
 * User: David Mayboroda
 */
public class Response<MD> {

    private MD model;
    private Exception exception;

    public Response(Exception exception) {
        this.exception = exception;
    }

    public Response(MD model) {
        this.model = model;
    }

    public MD getModel() { return model; }

    public Exception getException() { return exception; }

}
